package com.jojo.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChartVO<T> {

    @ApiModelProperty("数据格式")
    private String type;

    @ApiModelProperty("数据内容")
    private T data;

    public static <T> ChartVO<T> creat(String type, T data){
        return new ChartVO<>(type,data);
    }
}
